<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.longtop.com/intelliweb" prefix="e"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>请假流程批准</title>
</head>
<e:View id="view">
    <script type="text/javascript" src="<c:url value='/scripts/global.js'/>"></script>
	<script type="text/javascript" src="<c:url value='/scripts/skin.js'/>"></script>
    <script type="text/javascript">SkinUtil.getSkin();</script>
    <script type="text/javascript">SkinUtil.getModuleSkin();</script>
    
	<div id="Invisual Controls" style="min-height: 40px; background-color: LemonChiffon;" >
		<e:Dataset id="Dataset_FlowLeave" datasetDefinition="DatasetDefinition_flow.dsd" datasetRef="dataset_leave" pageSize="-1">
			<e:Field name="leaveId" dataType="string" label="ID" maxLength="32" />
			<e:Field name="instanceId" dataType="string" label="INSTANCE_ID" maxLength="32" />
			<e:Field name="applyMan" dataType="string" label="APPLY_MAN" maxLength="32" />
			<e:Field name="applyDate" dataType="timestamp" label="APPLY_DATE" />
			<e:Field name="leaveDays" dataType="integer" label="DAYS" maxLength="22" />
			<e:Field name="reason" dataType="string" label="REASON" maxLength="1000" />
			<e:Field name="remark" dataType="string" label="REMARK" maxLength="200" />
		</e:Dataset>
		
		<e:Command id="Command_Save" action="com.longtop.framework.sys.flow.web.LeaveApporveAction" method="save" submitForm="true" submitFormScope="all" validateRequired="true" notSubmitWithDataset="false">
			<e:DatasetInfo name="DatasetInfo1" dataset="Dataset_FlowLeave" alwayRefreshClient="true" submitType="all"></e:DatasetInfo>
		</e:Command>
		
		<e:ListDropDown id="ListDropDown_Status" autoDropDown="true" fixed="true">
			<e:ListDropDownItem name="ListDropDownItem1" label="已处理" value="1" />
			<e:ListDropDownItem name="ListDropDownItem2" label="未处理" value="0" />
		</e:ListDropDown>
		
		<e:DatePicker id="DatePicker_Date" autoDropDown="true" fixed="true"></e:DatePicker>
	</div>

<body>
	<e:Page id="ePage" action="com.longtop.framework.sys.flow.web.LeaveApporveAction" style="min-height: 80px; width: 100%; height: 100%;" onAfterLoadPage="ePage_onAfterLoadPage()">
		<table style="width: 100%; height: 100%;" border="0" cellpadding="2" cellspacing="2" width="100%" align="center">
			<tr>
				<td valign="top" width="100%">
					<e:Panel id="Panel_Result" style="width: 100%; height: 100%" captionStyle="color:#888888" caption="员工请假申请" captionIcon="/images/list_win.gif">
						<table style="text-align: left; width: 100%;" border="0" cellpadding="3" cellspacing="3" >
							<tr>
								<td align="right" width="1%" nowrap="nowrap">
									<e:Label id="Label_applyDate" caption="申请时间" style="height: auto; width: auto" ></e:Label>
								</td>
								<td align="left" width="32%">
									<e:Text id="Text_applyDate" dataset="Dataset_FlowLeave" field="applyDate" editorType="text" style="width: 250px" dropDown="DatePicker_Date" readOnly="true"></e:Text>
								</td>
								<td align="right" width="1%" nowrap="nowrap">
									<e:Label id="Label_applyMan" caption="申请人" style="height: auto; width: auto" ></e:Label>
								</td>
								<td align="left" width="32%">
									<e:Text id="Text_applyMan" dataset="Dataset_FlowLeave" field="applyMan" editorType="text" style="width: 250px" readOnly="true"></e:Text>
								</td>
								<td align="right" width="1%" nowrap="nowrap">
									<e:Label id="Label_days" caption="请假天数" style="height: auto; width: auto" ></e:Label>
								</td>
								<td align="left" width="32%">
									<e:Text id="Text_days" dataset="Dataset_FlowLeave" field="leaveDays" editorType="text" style="width: 250px"></e:Text>
								</td>
							</tr>
							<tr>
								<td align="right" width="1%" nowrap="nowrap">
									<e:Label id="Label_reason" caption="请假理由" style="height: auto; width: auto" ></e:Label>
								</td>
								<td align="left" width="32%">
									<e:Text id="Text_reason" dataset="Dataset_FlowLeave" field="reason" editorType="textArea" style="width: 250px;height:50px;"></e:Text>
								</td>
								<td align="right" width="1%" nowrap="nowrap">
									<e:Label id="Label_remark" caption="备注" style="height: auto; width: auto" ></e:Label>
								</td>
								<td align="left" width="32%">
									<e:Text id="Text_remark" dataset="Dataset_FlowLeave" field="remark" editorType="textArea" style="width: 250px;height:50px;"></e:Text>
								</td>
								<td align="right" width="1%" nowrap="nowrap">
									
								</td>
								<td align="left" width="32%">
									
								</td>
							</tr>
							<tr>
								<td align="right" width="1%" nowrap="nowrap">
									<e:Label id="Label_doComment" caption="审批意见" style="height: auto; width: auto" ></e:Label>
								</td>
								<td align="left" width="32%">
									<e:Text id="Text_doComment" editorType="textArea" style="width: 250px;height:50px;"></e:Text>
								</td>
								<td align="right" width="1%" nowrap="nowrap">
								</td>
								<td align="left" width="32%">
								</td>
								<td align="right" width="1%" nowrap="nowrap">
								</td>
								<td align="left" width="32%">
								</td>
							</tr>
							<tr>
								<td align="right" width="1%" nowrap="nowrap">
								</td>
								<td align="left" width="32%">
								</td>
								<td align="right" width="1%" nowrap="nowrap">
								</td>
								<td align="left" width="32%">
									<e:Button id="Button_Save" caption="提交" style="width: 70px; height: 22px" onClick="Button_Save_onClick()" icon="/images/submit.gif" ></e:Button>
								</td>
								<td align="right" width="1%" nowrap="nowrap">
								</td>
								<td align="left" width="32%">
								</td>
							</tr>
						</table>
					</e:Panel>
				</td>
			</tr>
			<tr>
				<td valign="top" height="200px;">
					<c:import url="/jsp/framework/sys/flow/flowStepList.jsp?isView=0&instanceId=${param.instanceId}"></c:import>
				</td>
			</tr>
		</table>
	</e:Page>
</body>
</e:View>
</html>
<script type="text/javascript">
//init
function ePage_onAfterLoadPage(){
}


//保存
function Button_Save_onClick() {
	
    Command_Save.execute();
}
</script>